package cm.cool.web.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import cm.cool.web.bean.BusinessCard;
import cm.cool.web.service.businesscard.BusinessCardService;
import cm.cool.web.util.respon.PaginationDto;
import cm.cool.web.util.respon.R;

@Controller
@RequestMapping("/BusinessCard")
public class BusinessCardController {

	@Autowired
	BusinessCardService businessCardService;
	
	/**
	 * 条件查找所有名片信息
	 * @param record
	 * @return
	 */
	@ResponseBody
	@RequestMapping("/selectByPrimaryAll")
	public R selectByPrimaryAll(BusinessCard record,PaginationDto paginationDto){
		return businessCardService.selectByPrimaryAll(record, paginationDto);
	}
}	
